package com.bob.web.common.config;

import com.mongodb.DBObject;
import com.mongodb.DBRef;
import org.springframework.data.mongodb.core.convert.DbRefProxyHandler;
import org.springframework.data.mongodb.core.convert.DbRefResolver;
import org.springframework.data.mongodb.core.convert.DbRefResolverCallback;
import org.springframework.data.mongodb.core.mapping.MongoPersistentEntity;
import org.springframework.data.mongodb.core.mapping.MongoPersistentProperty;

import java.util.List;

/**
 * 名称: MyDbRefResolver<br>
 * 描述:<br>
 * 类型: JAVA<br>
 * 最近修改时间:2017/7/12 10:33<br>
 *
 * @author BoYangsh
 * @version [版本号, V1.0]
 * @since 2017/7/12 10:33
 */
public class MyDbRefResolver implements DbRefResolver {

	@Override
	public Object resolveDbRef(MongoPersistentProperty property, DBRef dbref, DbRefResolverCallback callback,
			DbRefProxyHandler proxyHandler) {
		return null;
	}

	@Override
	public DBRef createDbRef(org.springframework.data.mongodb.core.mapping.DBRef annotation,
			MongoPersistentEntity<?> entity, Object id) {
		return null;
	}

	@Override
	public
	DBObject fetch(DBRef dbRef) {
		return null;
	}

	@Override
	public List<DBObject> bulkFetch(List<DBRef> dbRefs) {
		return null;
	}
}
